docs: Fix links in markdown content differently
authorMatthias Clasen <mclasen@redhat.com>
Wed, 29 Jul 2020 11:45:02 +0000 (07:45 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 29 Jul 2020 11:47:59 +0000 (07:47 -0400)
commit85fb015b45796002b689574b4ae09dad148b82b9
tree9a965116be7cf228d6e68bc37b1d4808a84c598d
parentd40b1d31b535e9d33321a1bd8d160bc90778b418
docs: Fix links in markdown content differently

pandoc insists on using the xlink namespace for hrefs,
and the namespace setup doesn't carry over xi:includes.
My first fix was to tell pandoc to generate standalone
docbook documents, which makes it insert the xlink
namespace. But it also makes it wrap all sections and
chapters in articles, and that messes up our toc structure.

So, patch things up differently by stripping the xlink:
from hrefs via regex.

Yay for XML!
docs/reference/gtk/gtk-markdown-to-docbook